package com.hmjk.health.util;

import org.json.JSONException;
import org.json.JSONObject;

public class ADose{
	public String drugname;
	public String drugtype;
	public String drugunit;
	public String illness;
	public float drugusage;
	
	public JSONObject getJson()
	{
		JSONObject  json = new JSONObject();
		
		try {
			json.put("drugname", drugname);
			json.put("drugtype", drugtype);
			json.put("drugunit", drugunit);
			json.put("illness", illness);
			json.put("drugusage", drugusage);
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return json;
	}
}